﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Model.View
{
    public class VDepartment
    {
        /*        
              dbo.Department.Name, dbo.Department.LeaderPositionID, dbo.Position.Name AS PositionName, dbo.Department.ID, 
                   dbo.Department.ParentDepartmentID, dbo.Department.Sort             
        */

        public int ID { get; set; }

        public string Name { get; set; }

        public string PositionName { get; set; }

        public int LeaderPositionID { get; set; }

        public int ParentDepartmentID { get; set; }         

        public int Sort { get; set; }

        public int Status { get; set; }

        [NotMapped]
        public string FullName { get; set; }


    }

}
